package com.youlai.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.entity.Role;
import com.youlai.system.model.form.MyRoleForm;
import com.youlai.system.model.vo.RoleVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface MyRoleConverter {
    Page<RoleVO> entityPage(Page<Role> rolePage);

    Role formEntity(MyRoleForm formData);

    MyRoleForm entityForm(Role entity);
}
